#include<Servo.h>
Servo m;
void setup() {
  // put your setup code here, to run once:
  m.attach(9);
}
int in;
void loop() {
  // put your main code here, to run repeatedly:
  in=analogRead(A0);
  if(a<=500){
  int a=map(in,0,500,0,135);
  m.write(a);
  }
  else if(a>=600){
  int a=map(in,600,1023,0,135);
  m.write(a);
  }
  else m.write(135);

}
